'use strict';

function calculate_elements_sum(collection) {
  for(let item of collection){
    
   var a=collection.reduce( function (total,item){
     return total + item;}
     ,0);
     console.log(a);
  return a; //在这里写入代码
}
}
module.exports = calculate_elements_sum;

